<div class="titlepanel"><?php __('Trash item');?></div>
<div class="ui-widget-content contentpanel" style="padding:10px;">
<div style="width:180px;margin:auto">
<div id="trashdrop" class="drop" style="height:41px;width:50px;background:#b15314;margin:auto;text-align:center;vertical-align:middle;padding-top:9px;"><center><?php __('Drop here');?></center></div>
<?php 
/*echo $form->create(null,array('id'=>'trashitemform'));
echo $form->input("trashamount",array('div'=>false,'label'=>'Amount :','id'=>'trashamount'));
echo $form->end();*/
?>
<br/>
<center><button id="trashitem" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button" aria-disabled="false"><span class="ui-button-text"><?php __('Trash items');?></span></button></center>
</div>
</div>
<?php
$this->Js->get('#trashitem');
$this->Js->event('click',
$this->Js->request(
array('controller' => 'private','action'=>'invremove'),
array(
'type'=>'json',
'method'=>'post',
'update' => '#player_inventory',
'data'=> '{player:player,block_type:blocktrashed,num:numtrashed}',
'dataExpression' => true,
'complete' => '$.unblockUI();',
'success'=>'$.blockUI({ message:"<h1>Send succeed...</h1>"});',
'error'=>'alert("An unexpected error has occurred!");'							
	)));

echo $this->Js->writeBuffer();
?>
